package com.str.LLs;
class DLLNode {

  Object data;   // the data wrapped in the node
  DLLNode prev;  // reference to the previous Node
  DLLNode next;  // reference to the next Node

  // default constructor,empty node
  DLLNode() {}

  // constructor for node with given object 
  DLLNode(Object obj) { data = obj; }

  // general constructor
  DLLNode(Object obj, DLLNode prevLink, DLLNode nextLink) {    
    data = obj;
    prev = prevLink;
    next = nextLink; 
  }

  public String toString()
  { return data.toString(); }
}
